<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box1 {
            width: 100px;
            height: 100px;
            border: 3px solid green;
            margin-bottom: 10px;
        }

        .box2 {
            width: 100px;
            height: 100px;
            border: 3px dashed green;
            margin-bottom: 10px;
        }

        .box3 {
            width: 100px;
            height: 100px;
            border: 3px dotted green;
            margin-bottom: 10px;
        }

        .box4 {
            width: 100px;
            height: 100px;
            /* 小属性的作用可以便于用层叠样式 */
            border-width: 3px;
            border-style: dotted;
            border-color: green;
            margin-bottom: 10px;
        }

        section {
            float: left;
            width: 100px;
            height: 100px;
            /* 小属性的作用可以便于用层叠样式 */
            border-width: 3px;
            border-style: solid;
            border-color: black;
            margin-right: 10px;
        }

        .spec {
            border-color: red;
        }
    </style>

</head>

<body>
    <div class="box1">solid实线</div>
    <div class="box2">dashed虚线</div>
    <div class="box3">dotted点状线</div>
    <div class="box4"></div>
    <section></section>
    <section></section>
    <section class="spec"></section>
    <section></section>
    <section></section>
</body>

</html>